package com.info.zhiduoduo.repository.entity.taxer;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author bob
 * @since 2019-11-16
 */
@Data
@Accessors(chain = true)
@TableName("zdd_taxer_payment")
public class TaxerPayment extends Model<TaxerPayment> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "payid", type = IdType.AUTO)
	private Integer payid;
	/**
	 * 流水单号
	 */
	private String payno;
	/**
	 *  id
	 */
	private Integer userid;
	/**
	 * 订单类型 1：开户 2：续期 3：付税费
	 */
	private Integer type;
	/**
	 * 税费关联的发票id
	 */
	private Integer invoiceid;
	/**
	 * 续期的到期日期
	 */
	@TableField("expire_date")
	private Date expireDate;
	/**
	 * 支付金额
	 */
	private BigDecimal amount;
	/**
	 * 订单状态 1：已创建 2：已支付
	 */
	private Integer state;
	/**
	 * 支付审核操作人id
	 */
	private Integer managerid;
	/**
	 * 审核备注
	 */
	private String remark;
	/**
	 * 凭证
	 */
	private String voucher;
	/**
	 * 支付确认时间
	 */
	private Date confirmtime;
	/**
	 * 逻辑删除 0：否 1：已删除
	 */
	@TableLogic
	private Integer deleted;
	private Date createtime;
	@TableField(update = "now()")
	private Date updatetime;

	@Override
	protected Serializable pkVal() {
		return this.payid;
	}

}
